package com.geek.web.mvc;

import com.geek.web.mvc.controller.Controller;

import java.lang.reflect.Method;
import java.util.Set;

/**
 * @author 小马哥
 * @author lizhiyang
 * 方法处理信息中 新增一个方法对应的类
 */
public class HandlerMethodInfo {

    private final String requestPath;

    private final Method handlerMethod;

    private final Set<String> supportedHttpMethods;


    public HandlerMethodInfo(String requestPath, Method handlerMethod, Set<String> supportedHttpMethods) {
        this.requestPath = requestPath;
        this.handlerMethod = handlerMethod;
        this.supportedHttpMethods = supportedHttpMethods;

    }

    public String getRequestPath() {
        return requestPath;
    }

    public Method getHandlerMethod() {
        return handlerMethod;
    }

    public Set<String> getSupportedHttpMethods() {
        return supportedHttpMethods;
    }


}
